<?php
namespace app\common\sendmsg;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/4 0004
 * Time: 14:18
 */
use think\Controller;
// 赛邮短信发送
require_once(EXTEND_PATH."/saiyouSDK/SUBMAILAutoload.php");
//include_once EXTEND_PATH."/saiyouSDK/app_config.php";

class SendM extends Controller {

    public function sendVertify($data,$tel)
    {
        $server='https://api.mysubmail.com/';
        $message_configs['appid']='22038';
        $message_configs['appkey']='ebd00dc1dae3f4a6c478f14f3569e589';
        $message_configs['sign_type']='md5';
        $message_configs['server']=$server;
        $submail=new \MESSAGEsend($message_configs);
        $submail->setTo($tel);
        $submail->SetContent($data);
        $send=$submail->send();
        return $send;
    }

}




